﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;
using System.Windows.Forms;

namespace UserInterface
{
    [Serializable()]
    public abstract class MovingObject
    {
        //fields
        public Point pos; // position of the Object
        protected int spd; // speed of teh Object
        public Lane depart, desti; // departure Lane, Destination Lane
       // [NonSerialized()]
       // protected PictureBox graphics; // The picturebox to paint on, Experimental
        protected bool draw = false; // Experimental, true if object moved
                                     // needs a different way on the graphics
                                     // to remain unpainted but still visible

        //properties

        //constructors
        public MovingObject()
        { }


        public void mapPbox()
        {
 
        }
        //methods
        /// <summary>
        /// Draws the car at thee specified point that appears, or moves to. 
        /// </summary>
        /// <param name="gr">The graphices from the form (crossing) that need to be painted at (needs to be Global) </param>
        
    }
}